import request from '@/utils/request'

export function login(data) {
  return request({
     url: '/andex-admin/admin/login',
    method: 'post',
    // params:data,
    data
  })
}
export function getInfo() {
  return request({
    url: '/login/adopt',
    method: 'get'
    // params: { token }
  })
}

export function logout() {
  return request({
    url: '/andex-admin/admin/loginOut', ///admin/loginOut退出接口
    method: 'post'
  })
}

export function addRoutes(data) {
  return request({
    url: '/menu/add',
    method: 'post',
    data
  })
}

export function listRoutes() {
  return request({
    url: '/menu/lists',
    method: 'get'
  })
}
export function getAuthMenu() {
  return request({
    url: '/menu/lists',
    method: 'get'
  })
}
